﻿<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<title>@Content.Data.Title</title>
	@{ Html.RenderPartial("LayoutPartials/Head"); }
	@{ Html.Resources().JQuery(); }
	@{ Html.Resources().JavaScript(Url.ThemedContent("~/Scripts/site.js")); }
	@{
		Content.PrependDefinition(re =>
		{
			re.Tab("Content", "Content");
			re.PublishedRange().Container("Metadata");
		});
	 }
	@if (IsSectionDefined("head")) { @RenderSection("head") }
</head>
<body>
	@{ Html.RenderControlPanel(); }
	<div id="wrapper" class="clearfix">
	@if (IsSectionDefined("page"))
 { <div>@RenderSection("page")</div> }
 else
 {
 <div id="header">
 		@if (IsSectionDefined("header"))
   { <div>@RenderSection("header")</div> }
 </div>
		<div id="content">
			@if (IsSectionDefined("main"))
   { 

       @RenderSection("main")
   
   }
   else
   {
			<div id="main" class="clearfix">
				@{ Html.RenderPartial("LayoutPartials/PreContent"); }
				<div id="aside" role="complementary">@if (IsSectionDefined("Aside"))
                                         { <div>@RenderSection("Aside")</div> }
                                         else { Html.DroppableZone("Aside").Render(); }</div>
				<div id="main" role="main">@RenderBody()</div>
				@{ Html.RenderPartial("LayoutPartials/PostContent"); }
			</div>
   }
		</div>

 }
	</div>
	@{ Html.Zone("Scripts").Render(); }
</body>
</html>
